package com.wm.androidmvp

import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import butterknife.BindView
import butterknife.ButterKnife
import butterknife.OnClick
import com.blankj.utilcode.util.ActivityUtils
import com.wm.androidmvp.activity.MainActivity
import com.wm.androidmvp.scene.MainSceneActivity

class IndexActivity:AppCompatActivity() {

    @BindView(R.id.index_activity)
    lateinit var mActivityBtn:Button
    @BindView(R.id.index_scene)
    lateinit var mSceneBtn:Button


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_index)
        ButterKnife.bind(this)
    }

    @OnClick(R.id.index_activity,R.id.index_scene)
    fun onClick(v: View){
        when(v.id){
            R.id.index_activity -> ActivityUtils.startActivity(MainActivity::class.java)
            R.id.index_scene -> ActivityUtils.startActivity(MainSceneActivity::class.java)
        }
    }

}